package astra.client.services;

import astra.client.models.*;
import com.google.gwt.user.client.rpc.AsyncCallback;

import java.util.List;

public interface AstraServiceAsync{

    void getEmployee(AsyncCallback<Employee> async);

    void signIn(String username, String password, AsyncCallback<Employee> async);

    void store(HasId model, AsyncCallback<Void> async);

    void getPurchase(int page, int rowsPerPage, boolean requestRowsCount, PurchaseFilter filter, AsyncCallback<TableRequestResult<Purchase>> async);

    void getAstraData(AsyncCallback<AstraData> async);
}
